namespace Jerry.UiFrame
{
    public class JDropdownTMP : TMPro.TMP_Dropdown, IComponent
    {
        public void SetVisible(bool bVisible)
        {
            gameObject.SetActive(bVisible);
        }

        public T GetChild<T>(string childName) where T : IComponent
        {
            var comp = transform.Find(childName).GetComponent<IComponent>();
            return (T)comp;
        }
    }
}